module.exports = {
  devServer: {
    historyApiFallback: {
      rewrites: [
        // 静态资源直接访问
        { from: /^\/data\.xlsx$/, to: '/data.xlsx' },
        // 其他路由 fallback 到 index.html
        { from: /./, to: '/index.html' }
      ]
    }
  }
};
